﻿Imports AutoCAD

''' <summary>
''' 板件服务
''' </summary>
Public Interface ICadPlateService

    Function DrawPlate(ByRef plate As PlateEntity) As AcadBlockReference

    ''' <summary>
    ''' 实体转板件
    ''' </summary>
    ''' <returns></returns>
    Function SolidToPlate(ByRef ent As AcadEntity) As AcadBlockReference

    ''' <summary>
    ''' 构建基础板件
    ''' </summary>
    ''' <param name="doc"></param>
    ''' <returns></returns>
    Function BuildBasePlateBlock(ByRef doc As AcadDocument) As AcadBlock

    ''' <summary>
    ''' 绘制板件
    ''' </summary>
    ''' <param name="ms"> 模型空间 </param>
    ''' <param name="sx"> 尺寸x </param>
    ''' <param name="sy"> 尺寸y </param>
    ''' <param name="sz"> 尺寸z </param>
    ''' <returns></returns>
    Function DrawPlate(ByRef ms As IAcadBlock, ByVal sx As Double, ByVal sy As Double, ByVal sz As Double) As AcadBlockReference

    Function DrawPlate(ByRef doc As AcadDocument, ByRef dr As DataRow) As AcadBlockReference

End Interface
